<?php

/**
 * Thread object - represents a discussion thread which contains posts.
 * @author Greg Smith <greg@gregdev.net>
 *
 */
class Thread {
	private $thread_id;
	private $thread_name;
	private $thread_forum;
	private $thread_post_count;
	private $thread_views;
	private $thread_is_locked;
	private $thread_is_pinned;
	
	/**
	 * Retrieves the info for the given thread ID from the database.
	 * @param int $thread_id
	 */
	public function getThread($thread_id) {
		
	}
	
	/**
	 * Creates a thread with the given info and adds it to the database.
	 * @param string $title
	 * @param int $forum
	 * @param boolean $is_locked
	 * @param boolean $is_pinned
	 * @param int $author
	 */
	public function createThread($title, $forum, $is_locked, $is_pinned, $author) {
		$this->thread_id = null;
	}
	
	/**
	 * Enter description here ...
	 * @param String $new_title
	 * @param Boolean $is_locked
	 * @param Boolean $is_pinned
	 * @param int $edited_by
	 */
	public function editThread($new_title, $is_locked, $is_pinned, $edited_by) {
		$this->thread_title = $new_title;
		$this->thread_is_locked = $is_locked;
		$this->thread_is_pinned = $is_pinned;
	}
}